<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据获取 - 大模型文档智能生成平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <style>
        /* [跟上面页面完全相同的CSS，为了独立运行，这里全部复制一份] */
        :root {
            --primary-color: #006838;
            --accent-color: #B58E55;
            --bg-color: #f4f6f9;
            --text-color: #333;
            --border-color: #e0e0e0;
            --sidebar-width: 240px;
            --header-height: 60px;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            background-color: var(--bg-color);
            color: var(--text-color);
            font-size: 14px;
        }

        .app-container { display: flex; height: 100vh; }
        .sidebar { width: var(--sidebar-width); background-color: #ffffff; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
        .sidebar-header { display: flex; align-items: center; justify-content: center; padding: 0 15px; height: var(--header-height); border-bottom: 1px solid var(--border-color); }
        .logo { height: 35px; margin-right: 10px; }
        .sidebar-header h1 { font-size: 16px; font-weight: 600; color: var(--primary-color); white-space: nowrap; }
        .sidebar-nav { flex-grow: 1; padding: 20px 0; }
        .sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
        .sidebar-nav li a { display: flex; align-items: center; padding: 12px 20px; color: #555; text-decoration: none; transition: all 0.2s; font-weight: 500; }
        .sidebar-nav li a:hover { background-color: #f0f7f2; color: var(--primary-color); }
        .sidebar-nav li a.active { background-color: var(--primary-color); color: white; border-right: 4px solid var(--accent-color); }
        .sidebar-nav li a .fa-fw { margin-right: 15px; width: 20px; text-align: center; }
        .main-wrapper { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
        .header { height: var(--header-height); background-color: #fff; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: flex-end; padding: 0 30px; }
        .header-actions { display: flex; align-items: center; gap: 25px; }
        .header-actions .icon-btn { font-size: 18px; color: #666; cursor: pointer; }
        .user-profile { display: flex; align-items: center; gap: 10px; }
        .user-profile img { width: 36px; height: 36px; border-radius: 50%; }
        .user-profile span { font-weight: 500; }
        .main-content { flex-grow: 1; padding: 30px; overflow-y: auto; }
        h2.page-title { font-size: 24px; font-weight: 600; margin-top: 0; margin-bottom: 25px; }
        .btn { padding: 10px 20px; border-radius: 5px; border: 1px solid transparent; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
        .btn-primary { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
        .btn-primary:hover { background-color: #005a2f; }
        .toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .search-box { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 5px; padding: 0 10px; background: #fff; }
        .search-box input { border: none; outline: none; padding: 10px 5px; font-size: 14px; }
        .search-box i { color: #999; }
        
        /* Card Layout Specific Styles */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }
        .card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            transition: box-shadow 0.3s;
        }
        .card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .card-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        .card-icon {
            font-size: 24px;
            color: var(--primary-color);
            margin-right: 15px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #e6f0eb;
            border-radius: 50%;
        }
        .card-title {
            font-size: 16px;
            font-weight: 600;
            margin: 0;
            flex-grow: 1;
        }
        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: 5px;
        }
        .status-dot.online { background-color: #28a745; }
        .status-dot.offline { background-color: #dc3545; }
        .status-text {
             display: flex;
             align-items: center;
        }
        .card-body p {
            font-size: 13px;
            color: #666;
            line-height: 1.6;
            flex-grow: 1;
        }
        .card-footer {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
         .card-footer a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
         }
         .card-footer a:hover {
            text-decoration: underline;
         }
    </style>
</head>
<body>
    <div class="app-container">
        <!-- Sidebar -->
        <aside class="sidebar">
            <div class="sidebar-header">
                <img src="https://i.imgur.com/uTjxkMh.png" alt="Logo" class="logo">
                <h1>文档智能生成平台</h1>
            </div>
            <nav class="sidebar-nav">
                <ul>
                    <li><a href="#"><i class="fas fa-cog fa-fw"></i> 系统管理</a></li>
                    <li><a href="#" class="active"><i class="fas fa-database fa-fw"></i> 数据获取</a></li>
                    <li><a href="#"><i class="fas fa-file-alt fa-fw"></i> 模板管理</a></li>
                    <li><a href="#"><i class="fas fa-cogs fa-fw"></i> 内容配置</a></li>
                    <li><a href="#"><i class="fas fa-receipt fa-fw"></i> 流水解析</a></li>
                    <li><a href="#"><i class="fas fa-magic fa-fw"></i> 文档生成</a></li>
                </ul>
            </nav>
        </aside>

        <!-- Main Wrapper -->
        <div class="main-wrapper">
             <!-- Header -->
            <header class="header">
                 <div class="header-actions">
                    <i class="fas fa-bell icon-btn"></i>
                    <i class="fas fa-question-circle icon-btn"></i>
                    <div class="user-profile">
                        <img src="https://i.pravatar.cc/40?u=admin" alt="User Avatar">
                        <span>王经理</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                </div>
            </header>

            <!-- Main Content -->
            <main class="main-content">
                <div class="toolbar">
                    <h2 class="page-title" style="margin-bottom:0;">数据源管理</h2>
                    <button class="btn btn-primary">
                        <i class="fas fa-plus"></i> 添加新数据源
                    </button>
                </div>

                <div class="card-grid">
                    <!-- Card 1 -->
                    <div class="card">
                        <div class="card-header">
                            <div class="card-icon"><i class="fas fa-database"></i></div>
                            <h3 class="card-title">核心信贷数据库</h3>
                            <div class="status-text"><span class="status-dot online"></span> 正常</div>
                        </div>
                        <div class="card-body">
                            <p>TDSQL数据库，包含客户基本信息、贷款记录、还款详情等结构化数据。</p>
                        </div>
                        <div class="card-footer">
                            <a href="#">测试连接</a>
                            <a href="#">编辑</a>
                            <a href="#" style="color: #dc3545;">删除</a>
                        </div>
                    </div>

                    <!-- Card 2 -->
                    <div class="card">
                        <div class="card-header">
                            <div class="card-icon"><i class="fas fa-file-archive"></i></div>
                            <h3 class="card-title">非结构化文档存储</h3>
                            <div class="status-text"><span class="status-dot online"></span> 正常</div>
                        </div>
                        <div class="card-body">
                            <p>用于存储客户上传的营业执照、财务报表等PDF和图片格式的文档。</p>
                        </div>
                        <div class="card-footer">
                            <a href="#">浏览文件</a>
                            <a href="#">编辑</a>
                            <a href="#" style="color: #dc3545;">删除</a>
                        </div>
                    </div>

                    <!-- Card 3 -->
                    <div class="card">
                        <div class="card-header">
                            <div class="card-icon"><i class="fas fa-network-wired"></i></div>
                            <h3 class="card-title">第三方征信接口</h3>
                            <div class="status-text"><span class="status-dot online"></span> 正常</div>
                        </div>
                        <div class="card-body">
                            <p>连接至外部征信机构的API，用于获取企业和个人的信用报告数据。</p>
                        </div>
                         <div class="card-footer">
                            <a href="#">查看日志</a>
                            <a href="#">编辑</a>
                            <a href="#" style="color: #dc3545;">删除</a>
                        </div>
                    </div>
                    
                     <!-- Card 4 -->
                    <div class="card">
                        <div class="card-header">
                            <div class="card-icon"><i class="fas fa-chart-line"></i></div>
                            <h3 class="card-title">内部市场数据平台</h3>
                            <div class="status-text"><span class="status-dot offline"></span> 连接失败</div>
                        </div>
                        <div class="card-body">
                            <p>获取行内市场分析和行业动态数据的接口，当前连接异常，请检查配置。</p>
                        </div>
                         <div class="card-footer">
                            <a href="#">测试连接</a>
                            <a href="#">编辑</a>
                            <a href="#" style="color: #dc3545;">删除</a>
                        </div>
                    </div>

                </div>
            </main>
        </div>
    </div>
</body>
</html>